﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyThuVien.View
{
    public partial class Help : Form
    {
        public Help()
        {
            InitializeComponent();
        }

        private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            switch (e.Node.Name)
            {
                //dangnhap,main
                case "ndangnhap":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\dangnhap.mht");
                    break;
                case "nmenu":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\menuhethong.mht");
                    break;
                //sach,docgia
                case "nthem":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\them.mht");
                    break;
                case "nsua":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\sua.mht");
                    break;
                case "nxoa":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\xoa.mht");
                    break;
                case "ntimkiem":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\timkiem.mht");
                    break;
                case "nthoat":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\thoat.mht");
                    break;
                //muon tra
                case "nthemtt":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\themtt.mht");
                    break;
                case "nsuatt":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\suatt.mht");
                    break;
                case "nxoatt":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\xoatt.mht");
                    break;
                case "ntimkiemtt":
                    webBrowser1.Navigate(@"E:\ThucTapNhom\library-manager-1\Code\QuanLyThuVien\QuanLyThuVien\Help\timkiemtt.mht");
                    break;
               
                default:
                    break;
            }
        }
    }
}
